package com.moranyunxi.www;

public class BaseOperatorDemo {
    public static void main(String[] args) {
        System.out.println("Java 运算符操作");

        int i = 99;
        int u = 99;
        System.out.println("[First time] = " + i);
        boolean result = ++i == 100;// 先赋值，再比较
        System.out.println("[result] = " + result);
        boolean result2 = i++ == 100;// 先比较，再赋值
        System.out.println("[result2] = " + result2);
        ++i;
        System.out.println("[Second time] = " + i);
        i++;
        System.out.println("[Third time] = " + i);
    }
}
